
package com.cloud.rapid.user.feign;

import com.cloud.rapid.project.entity.RpProject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 项目feign
 */
@FeignClient(contextId = "remoteProjectService", value = "rapid-project")
public interface RemoteProjectService {

    @GetMapping("/project/info")
    List<RpProject> info();

    @GetMapping("/project/update")
    void updateProject(@RequestParam("id") String id, @RequestParam("name") String name);
}
